﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Windows.Navigation;
using AstekServis.Web.Data;

namespace AstekServis
{
    public partial class MainPage : UserControl
    {
        public string LinkText { get; set; }

        public MainPage()
        {
            InitializeComponent();
        }

        private void ContentFrame_Navigated(object sender, NavigationEventArgs e)
        {
        }

        private void ContentFrame_NavigationFailed(object sender, NavigationFailedEventArgs e)
        {
            e.Handled = true;
            //ErrorWindow.CreateNew(e.Exception);
        }

        private void lnkLogin_Click(object sender, RoutedEventArgs e)
        {
            Session.Instance.Delete("user");
            lnkLogin.Content = "";
        }
    }
}
